package other;

/**
 * create by Sun
 * 2018/8/8
 */
public class InsideClassSingle {

    public static class CreateSingleClass{
        public static  final InsideClassSingle single=new InsideClassSingle();
        public static InsideClassSingle getInstance(){
            return single;
        }
    }

    public static void main(String[] args) {
        System.out.println(CreateSingleClass.getInstance());
        System.out.println(CreateSingleClass.getInstance());
    }
}
